package com.example.study.design.chain;

import com.example.study.model.RequestData;

/**
 * 抽象处理者
 *
 * @author duckquan
 */
public abstract class Handler {

    protected Handler successor = null;

    public void setSuccessor(Handler successor){
        this.successor = successor;
    }

    public abstract void handle(RequestData requestData);

}
